package com.tc.cursoflex.event
{
	import com.tc.cursoflex.domain.Shouter;
	
	import flash.events.Event;
	
	public class ShoutsEvent extends Event
	{
		public static const GET_TIMELINE_FOR:String = "getTimelineFor";
		public static const GET_SHOUTS_OF:String = "getShoutsOf";
		public static const SHOUT:String = "shout";
		
		private var _shouter:Shouter;
		private var _message:String;
		
		public function ShoutsEvent(type:String, sh:Shouter, msj:String=null)
		{
			super(type, true);
			_shouter = sh;
			_message = msj;
		}

		public function get message():String
		{
			return _message;
		}

		public function set message(value:String):void
		{
			_message = value;
		}

		public function get shouter():Shouter
		{
			return _shouter;
		}

		public function set shouter(value:Shouter):void
		{
			_shouter = value;
		}

	}
}